<template>
  <div>
    <header class="myfooterheader">
      <div class="headportrait"><img src="../assets/ye.webp" alt="" /></div>
      <span id="span">永恩</span>
      <button class="button"><router-link to='/MyItem'>编辑资料</router-link></button>
      <div id="tt"><span class="span">1</span><span>头条</span></div>
      <div id="hz"><span class="span">3</span><span>获赞</span></div>
    </header>
    <van-grid clickable :column-num="2">
      <van-grid-item icon="star-o" text="收藏" to="/" :style="{color:'red'}"/>
      <van-grid-item icon="underway-o" text="历史" url="/vant/mobile.html" :style="{color:'orange'}" />
    </van-grid>
    <ul class="ul">
      <li>修改密码 <span>></span></li>
      <li>联系我们 <span>></span></li>
      <li>关于我们 <span>></span></li>
      <li class="li"><router-link to="/HeEssay">退出登录</router-link></li>
    </ul>
    <van-tabbar v-model="active" route>
      <van-tabbar-item icon='wap-home-o' to='/'>首页 </van-tabbar-item>
      <van-tabbar-item icon="add-o" to="/MyHeader">发布</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/MyFooter">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "MyFooter",
};
</script>

<style scoped>
body {
  background: #ccc;
}
.myfooterheader{
  height: 180px;
  position: relative;
  color: #fff;
  background:url(../assets/bjt.jpg) no-repeat -500px -550px fixed;

}
.headportrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 35px;
  left: 15px;
  overflow: hidden;
}
.button {
  font-size: 5px;
  border-radius: 10px;
  width: 70px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  position: absolute;
  top: 50px;
  right: 30px;
  background: #fff;
  color: black;
}
#span {
  position: absolute;
  font-size: 15px;
  top: 65px;
  left: 130px;
}
img {
  width: 100%;
  height: 100%;
}
#tt {
  font-size: 10px;
  width: 100px;
  height: 50px;
  position: absolute;
  top: 120px;
  left: 10px;
}
#hz {
  font-size: 10px;
  width: 100px;
  height: 50px;
  position: absolute;
  right: 50px;
  top: 120px;
}
.ul li{
   height: 40px;
   line-height: 40px;
   background: #fff;
   padding-left: 10px;
   margin-bottom: 5px;
   position: relative;
}

.ul li span{
  position: absolute;
  right: 10px;
}
.ul .li{
   text-align: center;
   height: 40px;
   color: red;
   font-size: 20px;
}
</style>